package org.ssmd3.dao;

import org.springframework.stereotype.Repository;
import org.ssmd3.pojo.News;

import java.util.List;

@Repository("newsMapper")
public interface NewsMapper {

    int getRecordCount(News news);

    List<News> getNewsListByPage(News news);

   // List<News> getTopNewList();

    int save(News news);

    int update(News news);

    News getOneNews(int id);

    int delete(int id);

    int deleteAll(String[] ids);

}
